package com.example.librarymanagementproject2.model.entity;

import com.example.librarymanagementproject2.model.enums.FineStatus;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @ClassName FineRecord
 * @Description TODO
 * @Author Kx
 * @Date 2025/9/29 10:59
 * @Version 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class FineRecord {
    private Long id; // 罚款记录ID
    private Long userId; // 用户ID
    private Long borrowRecordId; // 借阅记录ID
    private BigDecimal amount; // 罚款金额
    private String reason; // 罚款原因
    private FineStatus status; // 罚款状态(是否支付)
    private LocalDateTime payTime; // 支付时间
    private LocalDateTime createTime; // 创建时间
    private LocalDateTime updateTime; // 更新时间
}
